package com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.AccessrecordMapper;
import com.entity.Accessrecord;

@Service
public class AccessrecordService {
	
	@Resource
	AccessrecordMapper accessrecordMapper;
	
	public Accessrecord query(String padnumber){
		return accessrecordMapper.query(padnumber);
	}
	
	public int insert(Accessrecord accessrecord){
		return accessrecordMapper.insert(accessrecord);
	}
	
	public int update(Accessrecord accessrecord){
		return accessrecordMapper.update(accessrecord);
	}
	
	public List<Accessrecord> querypadnumber(){
		return accessrecordMapper.querypadnumber();
	}

}
